<script setup>
defineProps({
  userName: String,
  userMobile: String
})
const handlePhone = (phone) => {
  window.location.href = `tel:${phone}`
}
</script>

<template>
  <div class="flex items-center justify-start">
    <span>{{ userName }}</span>
    <div
      class="c-#229F60 ml-8px text-14px font-500 leading-20px w-auto flex items-center justify-center"
      @click="handlePhone(userMobile)"
    >
      <img class="w-14px h-14px" src="@/assets/img/icon_phone.svg" alt="" />
      <span>联系</span>
    </div>
  </div>
</template>

<style scoped lang="less"></style>
